package com.kgc.java.javaoop.chapter06.c6project;

/**
 * 员工类
 */
public class Employee {
    private int eNo;//员工工号
    private String eName;//员工姓名
    private double eMoney;//员工工资

    public int geteNo() {
        return eNo;
    }

    public void seteNo(int eNo) {
        this.eNo = eNo;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public double geteMoney() {
        return eMoney;
    }

    public void seteMoney(double eMoney) {
        this.eMoney = eMoney;
    }

    /**
     * 午餐构造
     */
    public Employee() {
    }

    /**
     * 有参构造
     * @param eNo
     * @param eName
     * @param eMoney
     */
    public Employee(int eNo, String eName, double eMoney) {
        this.eNo = eNo;
        this.eName = eName;
        this.eMoney = eMoney;
    }

    /**
     * 员工信息d打印
     */
    public void print(){
        System.out.println(eNo+"\t"+eName+"\t"+eMoney);
    }
}
